<?php
namespace App\Models;

use App\Models\Simple\CSVModel;

/*
 * Mock travel destination data.
 * Note that we don't have to extend CodeIgniter's model for now
 */

class Places extends CSVModel{

    //mock data : an array of records
    protected $origin = WRITEPATH . 'data/placesData.csv';

    protected $keyField = 'id';

    protected $validationRules = [
        'name' => 'required|min_length[3]|max_length[255]',
        'description' => 'required',
        'link'=>'valid_url',
        'image'=>'required|min_length[4]',
];





}
